import Vue from 'vue'
import Router from 'vue-router'

// 四期项目
import { goodsRouters } from './goods'
import { upgradeRouter } from './upgrade'

Vue.use(Router)

const login = r => require.ensure([], () => r(require('@/page/login/login')), 'login');
const restpassword = r => require.ensure([], () => r(require('@/page/login/restpassword')), 'restpassword');
const manage = r => require.ensure([], () => r(require('@/page/mainview/manage')), 'manage');
const roleList = r => require.ensure([], () => r(require('@/page/systemmanagement/roleList')), 'roleList');
const codeManagement = r => require.ensure([], () => r(require('@/page/systemmanagement/codeManagement')), 'codeManagement');
const messageNotification = r => require.ensure([], () => r(require('@/page/systemmanagement/messageNotification')), 'messageNotification');
const dictionary = r => require.ensure([], () => r(require('@/page/systemmanagement/dictionary')), 'dictionary');
const systemparameter = r => require.ensure([], () => r(require('@/page/systemmanagement/systemparameter')), 'systemparameter');
const activationGoods = r => require.ensure([], () => r(require('@/page/systemmanagement/activationGoods')), 'activationGoods');
const changepassword = r => require.ensure([], () => r(require('@/page/systemmanagement/changepassword')), 'changepassword');
const accountList = r => require.ensure([], () => r(require('@/page/systemmanagement/accountList')), 'accountList');
const setMenu = r => require.ensure([], () => r(require('@/page/systemmanagement/components/setMenu')), 'setMenu');

const messageNotificationEdit = r => require.ensure([], () => r(require('@/page/systemmanagement/components/messageNotificationEdit')), 'messageNotificationEdit');
const rolelimitlist = r => require.ensure([], () => r(require('@/page/systemmanagement/rolelimitlist')), 'rolelimitlistt');

const adminSet = r => require.ensure([], () => r(require('@/page/systemmanagement/adminSet')), 'adminSet');
const anlaOrga = r => require.ensure([], () => r(require('@/page/basicinfoManagement/anlaOrga')), 'anlaOrga');
const distributioninfo = r => require.ensure([], () => r(require('@/page/basicinfoManagement/distributioninfo')), 'distributioninfo');
const basicinfo = r => require.ensure([], () => r(require('@/page/basicinfoManagement/basicinfo')), 'basicinfo');
const tagmanage = r => require.ensure([], () => r(require('@/page/basicinfoManagement/tagmanage')), 'tagmanage');
// const typePath = r => require.ensure([], () => r(require('@/page/basicinfoManagement/typePath')), 'typePath');
// 活动管理 名片
const userCard = r => require.ensure([], () => r(require('@/page/LuckdrawActivity/userCard')), 'userCard');
const userCardEdit = r => require.ensure([], () => r(require('@/page/LuckdrawActivity/userCardEdit')), 'userCardEdit');

const menuManagement = r => require.ensure([], () => r(require('@/page/systemmanagement/menuManagement')), 'menuManagement');

const newMember = r => require.ensure([], () => r(require('@/page/systemmanagement/newMember')), 'newMember');

// 卡券
const couponList = r => require.ensure([], () => r(require('@/page/coupon/couponList')), 'couponList');
const couponEdit = r => require.ensure([], () => r(require('@/page/coupon/couponEdit')), 'couponEdit');
// 通用券
const couponList_ty = r => require.ensure([], () => r(require('@/page/coupon/couponList_ty')), 'couponList_ty');
const couponEdit_ty = r => require.ensure([], () => r(require('@/page/coupon/couponEdit_ty')), 'couponEdit_ty');
// 定向券
const couponList_dx = r => require.ensure([], () => r(require('@/page/coupon/couponList_dx')), 'couponList_dx');
const couponEdit_dx = r => require.ensure([], () => r(require('@/page/coupon/couponEdit_dx')), 'couponEdit_dx');
const couponStatisticsList_dx = r => require.ensure([], () => r(require('@/page/coupon/couponStatisticsList_dx')), 'couponStatisticsList_dx');
// 购酒券
const couponList_gj = r => require.ensure([], () => r(require('@/page/coupon/couponList_gj')), 'couponList_gj');
const couponEdit_gj = r => require.ensure([], () => r(require('@/page/coupon/couponEdit_gj')), 'couponEdit_gj');

//购酒券发行记录
const goujiuCouponRecord = r => require.ensure([], () => r(require('@/page/coupon/goujiuCouponRecord')), 'goujiuCouponRecord');

//购酒券使用记录
const goujiuCouponUseList = r => require.ensure([], () => r(require('@/page/coupon/goujiuCouponUseList')), 'goujiuCouponUseList');


// 注册有礼活动方案fvf
const promotionList = r => require.ensure([], () => r(require('@/page/coupon/promotionList')), 'promotionList');
const promotionEdit = r => require.ensure([], () => r(require('@/page/coupon/promotionEdit')), 'promotionEdit');
// 总部发券
const sendCouponRecord = r => require.ensure([], () => r(require('@/page/coupon/sendCouponRecord')), 'sendCouponRecord');
const sendCoupon = r => require.ensure([], () => r(require('@/page/coupon/sendCoupon')), 'sendCoupon');
// 优惠券领取使用记录
const couponUseRecord = r => require.ensure([], () => r(require('@/page/coupon/couponUseRecord')), 'couponUseRecord');

// 订单中心
const orderManage = r => require.ensure([], () => r(require('@/page/orderManage/orderManage')), 'orderManage');
const shareManage = r => require.ensure([], () => r(require('@/page/orderManage/shareManage')), 'shareManage');
const memberShareRecord = r => require.ensure([], () => r(require('@/page/orderManage/memberShareRecord')), 'memberShareRecord');
const customizeOrderSearch = r => require.ensure([], () => r(require('@/page/orderManage/customizeOrderSearch')), 'customizeOrderSearch');
const normalOrderSearch = r => require.ensure([], () => r(require('@/page/orderManage/normalOrderSearch')), 'normalOrderSearch');
const returnOrderSearch = r => require.ensure([], () => r(require('@/page/orderManage/returnOrderSearch')), 'returnOrderSearch');
const customizeOrderDetail = r => require.ensure([], () => r(require('@/page/orderManage/customizeOrderDetail')), 'customizeOrderDetail');
const normalOrderDetail = r => require.ensure([], () => r(require('@/page/orderManage/normalOrderDetail')), 'normalOrderDetail');
const returnOrderDetail = r => require.ensure([], () => r(require('@/page/orderManage/returnOrderDetail')), 'returnOrderDetail');
const activeUserInformation = r => require.ensure([], () => r(require('@/page/orderManage/activeUserInformation')), 'activeUserInformation');

//定制酒
const goodsCustomizeConfig = r => require.ensure([], () => r(require('@/page/CommodityCenter/goodsCustomizeConfig')), 'goodsCustomizeConfig');
const goodsCustomizeManage = r => require.ensure([], () => r(require('@/page/CommodityCenter/goodsCustomizeManage')), 'goodsCustomizeManage');
//满赠活动
const giftActivityManage = r => require.ensure([], () => r(require('@/page/CommodityCenter/giftActivityManage')), 'giftActivityManage');
const preSaleActivityManage = r => require.ensure([], () => r(require('@/page/CommodityCenter/preSaleActivityManage')), 'preSaleActivityManage');

const addBonusPointActivity = r => require.ensure([], () => r(require('@/page/CommodityCenter/addBonusPointActivity')), 'addBonusPointActivity');
const addBonusPointActivityDetail = r => require.ensure([], () => r(require('@/page/CommodityCenter/addBonusPointActivityDetail')), 'addBonusPointActivityDetail');
const shareActivity = r => require.ensure([], () => r(require('@/page/CommodityCenter/shareActivity')), 'shareActivity');
const giftActivityDetail = r => require.ensure([], () => r(require('@/page/CommodityCenter/giftActivityDetail')), 'giftActivityDetail');
const shareActivityDetail = r => require.ensure([], () => r(require('@/page/CommodityCenter/shareActivityDetail')), 'shareActivityDetail');
const giftActivityRecords = r => require.ensure([], () => r(require('@/page/CommodityCenter/giftActivityRecords')), 'giftActivityRecords');

const memberInfo = r => require.ensure([], () => r(require('@/page/memberManagement/memberInfo')), 'memberInfo');
const memberInfodetail = r => require.ensure([], () => r(require('@/page/memberManagement/components/memberInfodetail')), 'memberInfodetail');
const membergrade = r => require.ensure([], () => r(require('@/page/memberManagement/membergrade')), 'membergrade');

//会员中心integralFlowListgiftActivityManage
const integralFlowList = r => require.ensure([], () => r(require('@/page/memberManagement/integralFlowList')), 'integralFlowList');
const integralrule = r => require.ensure([], () => r(require('@/page/memberManagement/integralrule')), 'integralrule');
const vipScoreList = r => require.ensure([], () => r(require('@/page/memberManagement/vipScoreList')), 'vipScoreList');
const memberPriceEdit = r => require.ensure([], () => r(require('@/page/CommodityCenter/memberPriceEdit')), 'memberPriceEdit');
const headProductmanage = r => require.ensure([], () => r(require('@/page/CommodityCenter/headProductmanage')), 'headProductmanage');
const memberPrice = r => require.ensure([], () => r(require('@/page/CommodityCenter/memberPrice')), 'memberPrice');
const productEdit = r => require.ensure([], () => r(require('@/page/CommodityCenter/productEdit')), 'productEdit');
const productDetail = r => require.ensure([], () => r(require('@/page/CommodityCenter/productDetail')), 'productDetail');
const warProductmanage = r => require.ensure([], () => r(require('@/page/CommodityCenter/warProductmanage')), 'warProductmanage');
const warPricemanage = r => require.ensure([], () => r(require('@/page/CommodityCenter/warPricemanage')), 'warPricemanage');
const headPricemanage = r => require.ensure([], () => r(require('@/page/CommodityCenter/headPricemanage')), 'headPricemanage');
const headProductclass = r => require.ensure([], () => r(require('@/page/CommodityCenter/headProductclass')), 'headProductclass');
const shopArchives = r => require.ensure([], () => r(require('@/page/shopManagement/shopArchives')), 'shopArchives');
const addShopapply = r => require.ensure([], () => r(require('@/page/shopManagement/addShopapply')), 'addShopapply');
const headexamine = r => require.ensure([], () => r(require('@/page/shopManagement/headexamine')), 'headexamine');
const shopMemberset = r => require.ensure([], () => r(require('@/page/shopManagement/shopMemberset')), 'shopMemberset');
const shopMembersetcopy = r => require.ensure([], () => r(require('@/page/shopManagement/shopMembersetcopy')), 'shopMembersetcopy');
const warexamine = r => require.ensure([], () => r(require('@/page/shopManagement/warexamine')), 'warexamine');
const shopClose = r => require.ensure([], () => r(require('@/page/shopManagement/shopClose')), 'shopClose');


const adsenseList = r => require.ensure([], () => r(require('@/page/promotionCenter/adsenseList')), 'adsenseList');
const shopgrade = r => require.ensure([], () => r(require('@/page/memberManagement/shopgrade')), 'shopgrade');
const shopintegralrule = r => require.ensure([], () => r(require('@/page/memberManagement/shopintegralrule')), 'shopintegralrule');
const infoCaterMerchants = r => require.ensure([], () => r(require('@/page/shopManagement/components/infoCaterMerchants')), 'infoCaterMerchants');
const infoCaterMerchantscopy = r => require.ensure([], () => r(require('@/page/shopManagement/components/infoCaterMerchantscopy')), 'infoCaterMerchantscopy');
const adSetting = r => require.ensure([], () => r(require('@/page/basicinfoManagement/adSetting')), 'adSetting');
const adsetingDetail = r => require.ensure([], () => r(require('@/page/basicinfoManagement/adsetingDetail')), 'adsetingDetail');//无用
const addshopapplydetail = r => require.ensure([], () => r(require('@/page/shopManagement/addshopapplydetail')), 'addshopapplydetail');
const addshopapplydetailcopy = r => require.ensure([], () => r(require('@/page/shopManagement/addshopapplydetailcopy')), 'addshopapplydetailcopy');
const licenseReview = r => require.ensure([], () => r(require('@/page/shopManagement/licenseReview')), 'licenseReview');
const applystep = r => require.ensure([], () => r(require('@/page/shopManagement/applystep')), 'applystep');
const applysteprest = r => require.ensure([], () => r(require('@/page/shopManagement/applysteprest')), 'applysteprest');
const homepage = r => require.ensure([], () => r(require('@/page/homePage/homepage')), 'homepage');


const attendanceRecord = r => require.ensure([], () => r(require('@/page/smartShop/attendanceRecord/Index')), 'attendanceRecord');
const attendanceRecordDetail = r => require.ensure([], () => r(require('@/page/smartShop/attendanceRecord/Detail')), 'Detail');
const IntelligentEarlyWarning = r => require.ensure([], () => r(require('@/page/smartShop/IntelligentEarlyWarning/Index')), 'IntelligentEarlyWarning');
const WarZoneDeskDetail = r => require.ensure([], () => r(require('@/page/smartShop/IntelligentEarlyWarning/WarZoneDeskDetail')), 'WarZoneDeskDetail');
const WarZoneFrockDetail = r => require.ensure([], () => r(require('@/page/smartShop/IntelligentEarlyWarning/WarZoneFrockDetail')), 'WarZoneFrockDetail');
const ShopManagerDetail = r => require.ensure([], () => r(require('@/page/smartShop/IntelligentEarlyWarning/ShopManagerDetail')), 'ShopManagerDetail');
const StoreTaskTracking = r => require.ensure([], () => r(require('@/page/smartShop/StoreTaskTracking/Index.vue')), 'StoreTaskTracking');
const StoreTaskTrackingDetail = r => require.ensure([], () => r(require('@/page/smartShop/StoreTaskTracking/Detail.vue')), 'StoreTaskTrackingDetail');
const StoreInspectionTaskSetting = r => require.ensure([], () => r(require('@/page/smartShop/StoreInspectionTaskSetting/Index.vue')), 'StoreInspectionTaskSetting');
const WineInformation = r => require.ensure([], () => r(require('@/page/smartShop/WineInformation/Index.vue')), 'WineInformation');
const WineInformationAdd = r => require.ensure([], () => r(require('@/page/smartShop/WineInformation/Add.vue')), 'WineInformationAdd');
const EmpInfo = r => require.ensure([], () => r(require('@/page/smartShop/EmpInfo/Index.vue')), 'EmpInfo');
const EmpInfoUpload = r => require.ensure([], () => r(require('@/page/smartShop/EmpInfo/EmpInfoUpload.vue')), 'EmpInfoUpload');
const TestItem = r => require.ensure([], () => r(require('@/page/smartShop/TestItem/TestItem.vue')), 'TestItem');
const AddEquipment = r => require.ensure([], () => r(require('@/page/smartShop/equipmentManage/AddEquipment.vue')), 'AddEquipment');
const Equipment = r => require.ensure([], () => r(require('@/page/smartShop/equipmentManage/Equipment.vue')), 'Equipment');
const lotteryActivityset = r => require.ensure([], () => r(require('@/page/LuckdrawActivity/lotteryActivityset.vue')), 'lotteryActivityset');
const lotteryActivityxinset = r => require.ensure([], () => r(require('@/page/LuckdrawActivity/lotteryActivityxinset.vue')), 'lotteryActivityxinset');
const giftbank = r => require.ensure([], () => r(require('@/page/LuckdrawActivity/giftbank.vue')), 'giftbank');
const lotteryActivitysetedit = r => require.ensure([], () => r(require('@/page/LuckdrawActivity/components/lotteryActivitysetedit.vue')), 'lotteryActivitysetedit');


const raffleRecord = r => require.ensure([], () => r(require('@/page/LuckdrawActivity/components/raffleRecord.vue')), 'raffleRecord');
const winPrizeRecord = r => require.ensure([], () => r(require('@/page/LuckdrawActivity/components/winPrizeRecord.vue')), 'winPrizeRecord');
const lotteryActivitysetxinedit = r => require.ensure([], () => r(require('@/page/LuckdrawActivity/components/lotteryActivitysetxinedit.vue')), 'lotteryActivitysetxinedit');

const IntegralActivityEdit = r => require.ensure([], () => r(require('@/page/LuckdrawActivity/components/IntegralActivityEdit.vue')), 'IntegralActivityEdit');
const giftbankedit = r => require.ensure([], () => r(require('@/page/LuckdrawActivity/components/giftbankedit.vue')), 'giftbankedit');
const pointsGiftBankEdit = r => require.ensure([], () => r(require('@/page/LuckdrawActivity/components/pointsGiftBankEdit.vue')), 'pointsGiftBankEdit');
const prizeLibrary = r => require.ensure([], () => r(require('@/page/LuckdrawActivity/prizeLibrary.vue')), 'prizeLibrary');
const commonproblem = r => require.ensure([], () => r(require('@/page/LuckdrawActivity/commonproblem.vue')), 'commonproblem');
const IntegralActivity = r => require.ensure([], () => r(require('@/page/LuckdrawActivity/IntegralActivity.vue')), 'IntegralActivity');
const pointsGiftBank = r => require.ensure([], () => r(require('@/page/LuckdrawActivity/pointsGiftBank.vue')), 'pointsGiftBank');
const pointsRecord = r => require.ensure([], () => r(require('@/page/LuckdrawActivity/pointsRecord.vue')), 'pointsRecord');
const prizeLibraryEdit = r => require.ensure([], () => r(require('@/page/LuckdrawActivity/prizeLibraryEdit')), 'prizeLibraryEdit');
const commonproblemEdit = r => require.ensure([], () => r(require('@/page/LuckdrawActivity/commonproblemEdit')), 'commonproblemEdit');
const shopMembersetedit = r => require.ensure([], () => r(require('@/page/shopManagement/components/shopMembersetedit')), 'shopMembersetedit');
const winningCheck = r => require.ensure([], () => r(require('@/page/LuckdrawActivity/winningCheck.vue')), 'winningCheck');
const headexaminesee = r => require.ensure([], () => r(require('@/page/mainesee/headexaminesee.vue')), 'headexaminesee');

const businessActivity = r => require.ensure([], () => r(require('@/page/mainesee/businessActivity.vue')), 'businessActivity');
const merchantActivity = r => require.ensure([], () => r(require('@/page/mainesee/merchantActivity.vue')), 'merchantActivity');
const warexaminesee = r => require.ensure([], () => r(require('@/page/mainesee/warexaminesee.vue')), 'warexaminesee');
const serviceRecords = r => require.ensure([], () => r(require('@/page/mainesee/serviceRecords.vue')), 'serviceRecords');
const canCodeDataStatistics = r => require.ensure([], () => r(require('@/page/mainesee/canCodeDataStatistics.vue')), 'canCodeDataStatistics');
const scanCodeOutboundDataStatistics = r => require.ensure([], () => r(require('@/page/mainesee/scanCodeOutboundDataStatistics.vue')), 'scanCodeOutboundDataStatistics');

//问卷调查
const questionnaireStatistical = r => require.ensure([], () => r(require('@/page/mainesee/questionnaireStatistical.vue')), 'questionnaireStatistical');

const questionnaireData = r => require.ensure([], () => r(require('@/page/mainesee/questionnaireData.vue')), 'questionnaireData');
const questionnaireList = r => require.ensure([], () => r(require('@/page/mainesee/questionnaireList.vue')), 'questionnaireList');
const questionnaireEdit = r => require.ensure([], () => r(require('@/page/mainesee/questionnaireEdit')), 'questionnaireEdit');

const BaseCenter = r => require.ensure([], () => r(require('@/page/smartShop/BaseCenter/baseCenter.vue')), 'BaseCenter');
const VideoPlugin = r => require.ensure([], () => r(require('@/page/smartShop/videoSurveillance/component/detail.vue')), 'VideoPlugin');
const tastingWine = r => require.ensure([], () => r(require('@/page/winePackets/tastingWine.vue')), 'tastingWine');
const tastingWineDetail = r => require.ensure([], () => r(require('@/page/winePackets/components/tastingWineDetail.vue')), 'tastingWineDetail');
const tastingWineManage = r => require.ensure([], () => r(require('@/page/winePackets/tastingWineManage.vue')), 'tastingWineManage');
const tastingWineManageDetail = r => require.ensure([], () => r(require('@/page/winePackets/components/tastingWineManageDetail.vue')), 'tastingWineManageDetail');
const hongbaoActivityManage = r => require.ensure([], () => r(require('@/page/winePackets/hongbaoActivityManage.vue')), 'hongbaoActivityManage');
const cleanHongBaoTime = r => require.ensure([], () => r(require('@/page/winePackets/cleanHongBaoTime.vue')), 'cleanHongBaoTime');
const hongbaoActivityDetail = r => require.ensure([], () => r(require('@/page/winePackets/components/hongbaoActivityDetail.vue')), 'hongbaoActivityDetail');
const breakdownOfTheFlow = r => require.ensure([], () => r(require('@/page/winePackets/breakdownOfTheFlow.vue')), 'breakdownOfTheFlow');
const transferRecords = r => require.ensure([], () => r(require('@/page/winePackets/transferRecords.vue')), 'transferRecords');
const queryExchangeForm = r => require.ensure([], () => r(require('@/page/winePackets/queryExchangeForm.vue')), 'queryExchangeForm');
const queryExchangeFormDetail = r => require.ensure([], () => r(require('@/page/winePackets/components/queryExchangeFormDetail.vue')), 'queryExchangeFormDetail');
const transferRecordsDetail  = r => require.ensure([], () => r(require('@/page/winePackets/components/transferRecordsDetail.vue')), 'transferRecordsDetail');
//报表
const goodMarketStatement = r => require.ensure([], () => r(require('@/page/mainesee/goodMarketStatement.vue')), 'goodMarketStatement');
const goodMarketSituationStatement = r => require.ensure([], () => r(require('@/page/mainesee/goodMarketSituationStatement.vue')), 'goodMarketSituationStatement');
const storeSellStatement = r => require.ensure([], () => r(require('@/page/mainesee/storeSellStatement.vue')), 'storeSellStatement');
const warZoneSellStatement = r => require.ensure([], () => r(require('@/page/mainesee/warZoneSellStatement.vue')), 'warZoneSellStatement');

//数据报表
const warZoneMemberSalesReport = r => require.ensure([], () => r(require('@/page/dataReportManage/warZoneMemberSalesReport')), 'warZoneMemberSalesReport');
const overallSituationOfMembers = r => require.ensure([], () => r(require('@/page/dataReportManage/overallSituationOfMembers')), 'overallSituationOfMembers');
const warZoneSalesReport = r => require.ensure([], () => r(require('@/page/dataReportManage/warZoneSalesReport')), 'warZoneSalesReport');

//12.11 配置信息
const prizeActivityConfiguration = r => require.ensure([], () => r(require('@/page/mainesee/activeConfiguration/prizeActivityConfiguration.vue')), 'prizeActivityConfiguration');
const editActivityConfiguration = r => require.ensure([], () => r(require('@/page/mainesee/activeConfiguration/editActivityConfiguration.vue')), 'editActivityConfiguration');
const miniGamesHonoreeInfo = r => require.ensure([], () => r(require('@/page/mainesee/activeConfiguration/miniGamesHonoreeInfo.vue')), 'miniGamesHonoreeInfo');

//12.21  查询订单报文
const orderMessageList = r => require.ensure([], () => r(require('@/page/mainesee/activeConfiguration/orderMessageList.vue')), 'orderMessageList');

//21-01-08  元旦春节 活动配置页面
const newYearActive = r => require.ensure([], () => r(require('@/page/mainesee/newYearActiveList/newYearActive.vue')), 'newYearActive');
const editNewYearActive = r => require.ensure([], () => r(require('@/page/mainesee/newYearActiveList/editNewYearActive.vue')), 'editNewYearActive');

//21-08-03 直播
const liveStore = r => require.ensure([], () => r(require('@/page/live/goods/liveStore.vue')), 'liveStore');
const liveplan = r => require.ensure([], () => r(require('@/page/live/liveplan.vue')), 'liveplan');
const accountmanage = r => require.ensure([], () => r(require('@/page/live/accountmanage.vue')), 'accountmanage');
const giftboxmanage = r => require.ensure([], () => r(require('@/page/live/giftboxmanage.vue')), 'giftboxmanage');
const liveplandetail = r => require.ensure([], () => r(require('@/page/live/liveplandetail.vue')), 'liveplandetail');
const headquartersLiveBroadcastApproval = r => require.ensure([], () => r(require('@/page/live/approval/headquartersLiveBroadcastApproval.vue')), 'headquartersLiveBroadcastApproval');
const infoApprovalDetail = r => require.ensure([], () => r(require('@/page/live/approval/infoApprovalDetail.vue')), 'infoApprovalDetail');

//2022-01-05 元春活动外挂菜单
const yuanchunAct = r => require.ensure([], () => r(require('@/page/yuanchun/index.vue')), 'yuanchunAct');

//2022-11-13 预售订单
const preSaleActivityDetail = r => require.ensure([], () => r(require('@/page/CommodityCenter/preSaleActivityDetail.vue')), 'preSaleActivityDetail');
const preSaleOrderSearch = r => require.ensure([], () => r(require('@/page/CommodityCenter/preSaleOrderSearch.vue')), 'preSaleOrderSearch');
const preSaleOrderSearchDetail = r => require.ensure([], () => r(require('@/page/CommodityCenter/preSaleOrderSearchDetail.vue')), 'preSaleOrderSearchDetail');

// 分享统计
const shareTotal = r => require.ensure([], () => r(require('@/page/shareTotal/index.vue')), 'shareTotal');

// 优购券
const yougouCoupon = r => require.ensure([], () => r(require('@/page/yougouCoupon/manage.vue')), 'yougouCoupon');
const yougouCouponDetail = r => require.ensure([], () => r(require('@/page/yougouCoupon/detail.vue')), 'yougouCouponDetail');

// 协议管理
const agreementManage = r => require.ensure([], () => r(require('@/page/agreementManage/index.vue')), 'agreementManage');
const agreementDetail = r => require.ensure([], () => r(require('@/page/agreementManage/detail.vue')), 'agreementDetail');

// 店铺档案修改
const updateShopInfo = r => require.ensure([], () => r(require('@/page/shopManagement/updateShopInfo.vue')), 'updateShopInfo');

// 高德地图店铺同步
const amapShopSync = r => require.ensure([], () => r(require('@/page/amapSync/shop/index.vue')), 'amapShopSync');
// 高德地图商品同步
const amapGoodsSync = r => require.ensure([], () => r(require('@/page/amapSync/goods/index.vue')), 'amapGoodsSync');

// 数据看板
const dataBoard = r => require.ensure([], () => r(require('@/page/dataBoard/index.vue')), 'dataBoard');

const routes = [
  {
    path: "/",
    name: 'login',
    component: login
  },
  {
    path: "/login",
    name: 'login',
    component: login
  },
  {
    path: "/restpassword",
    component: restpassword
  },
  {
    path: "/addShopapply",
    name: "addShopapply",
    component: addShopapply,
    meta: {
      requireAuth: true
    }
  },
  {
    path: "/addshopapplydetail",
    name: "addshopapplydetail",
    component: addshopapplydetail,
    meta: {
      requireAuth: true
    }
  },

  {
    path: "/applystep",
    name: "applystep",
    component: applystep,
    meta: {
      requireAuth: true
    }
  },
  {
    path: "/manage",
    component: manage,
    name: "manage",
    children: [
      {
        path: "",
        component: roleList,
        meta: []
      },
      {
        path: "/roleList",
        component: roleList,
        meta: {
          keepAlive: false, //当前页面不需要缓存
        }
      },

      {
        path: "/codeManagement",
        component: codeManagement,
        meta: {
          keepAlive: false, //当前页面不需要缓存
        }
      },
      {
        path: "/messageNotification",
        component: messageNotification,
        meta: {
          keepAlive: false, //当前页面不需要缓存
        }
      },
      {
        path: "/accountList",
        name: "accountList",
        component: accountList,
        meta: {
          requireAuth: true
        }
      },

      {
        path: "/setMenu",
        name: "setMenu",
        component: setMenu,
        meta: {
          keepAlive: false, //当前页面不需要缓存
          requireAuth: true
        }
      },

      {
        path: "/messageNotificationEdit",
        name: "messageNotificationEdit",
        component: messageNotificationEdit,
        meta: {
          keepAlive: false, //当前页面不需要缓存
          requireAuth: true
        }
      },
      {
        path: "/rolelimitlist",
        component: rolelimitlist,
        meta: {
          keepalive: false,//当前页面不需要缓存
          requireAuth: true
        }
      },
      {
        path: "/adminSet",
        name: "adminSet",
        component: adminSet,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/changepassword",
        name: "changepassword",
        component: changepassword,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/menuManagement",
        name: "menuManagement",
        component: menuManagement,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/preSaleActivityDetail",
        name: "preSaleActivityDetail",
        component: preSaleActivityDetail,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/preSaleOrderSearch",
        name: "preSaleOrderSearch",
        component: preSaleOrderSearch,
        meta: {
          requireAuth: true,
        }
      },
      {
        path: "/preSaleOrderSearchDetail",
        name: "preSaleOrderSearchDetail",
        component: preSaleOrderSearchDetail,
        meta: {
          requireAuth: true,
        }
      },
      {
        path: "/anlaOrga",
        name: "anlaOrga",
        component: anlaOrga,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/applysteprest",
        name: "applysteprest",
        component: applysteprest,
        meta: {
          requireAuth: true
        }
      },

      {
        path: "/liveplan",
        name: "liveplan",
        component: liveplan,
        meta: {
          requireAuth: true,
          // keepAlive: true //当前的.vue文件需要缓存
             }
      },
      {
        path: "/accountmanage",
        name: "accountmanage",
        component: accountmanage,
        meta: {
          requireAuth: true,
          // keepAlive: true //当前的.vue文件需要缓存
             }
      },
      {
        path: "/giftboxmanage",
        name: "giftboxmanage",
        component: giftboxmanage,
        meta: {
          requireAuth: true,
          // keepAlive: true //当前的.vue文件需要缓存
             }
      },
      {
        path: "/liveplandetail",
        name: "liveplandetail",
        component: liveplandetail,
        meta: {
          requireAuth: true,
          // keepAlive: true //当前的.vue文件需要缓存
             }
      },
      {
        path: "/distributioninfo",
        name: "distributioninfo",
        component: distributioninfo,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/newMember",
        name: "newMember",
        component: newMember,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/orderManage",
        name: "orderManage",
        component: orderManage,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/shareManage",
        name: "shareManage",
        component: shareManage,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/memberShareRecord",
        name: "memberShareRecord",
        component: memberShareRecord,
        meta: {
          requireAuth: true,
          keepAlive: true //当前的.vue文件需要缓存
        }
      },
      {
        path: "/customizeOrderSearch",
        name: "customizeOrderSearch",
        component: customizeOrderSearch,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/normalOrderSearch",
        name: "normalOrderSearch",
        component: normalOrderSearch,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/returnOrderSearch",
        name: "returnOrderSearch",
        component: returnOrderSearch,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/customizeOrderDetail",
        name: "customizeOrderDetail",
        component: customizeOrderDetail,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/normalOrderDetail",
        name: "normalOrderDetail",
        component: normalOrderDetail,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/returnOrderDetail",
        name: "returnOrderDetail",
        component: returnOrderDetail,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/activeUserInformation",
        name: "activeUserInformation",
        component: activeUserInformation,
        meta: {
          requireAuth: true}
        },
      {
        path: "/goodsCustomizeConfig",
        name: "goodsCustomizeConfig",
        component: goodsCustomizeConfig,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/goodsCustomizeManage",
        name: "goodsCustomizeManage",
        component: goodsCustomizeManage,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/giftActivityManage",
        name: "giftActivityManage",
        component: giftActivityManage,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/preSaleActivityManage",
        name: "preSaleActivityManage",
        component: preSaleActivityManage,
        meta: {
          requireAuth: true
        }
      }

      ,{
        path: "/addBonusPointActivity",
        name: "addBonusPointActivity",
        component: addBonusPointActivity,
        meta: {
          requireAuth: true
        }
      },

      {
        path: "/shareActivity",
        name: "shareActivity",
        component: shareActivity,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/giftActivityDetail",
        name: "giftActivityDetail",
        component: giftActivityDetail,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/addBonusPointActivityDetail",
        name: "addBonusPointActivityDetail",
        component: addBonusPointActivityDetail,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/shareActivityDetail",
        name: "shareActivityDetail",
        component: shareActivityDetail,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/giftActivityRecords",
        name: "giftActivityRecords",
        component: giftActivityRecords,
        meta: {
          requireAuth: true,
          keepAlive: true //当前的.vue文件需要缓存
        }
      },
      {
        path: "/basicinfo",
        name: "basicinfo",
        component: basicinfo,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/tagmanage",
        name: "tagmanage",
        component: tagmanage,
        meta: {
          requireAuth: true
        }

        // }, {
        //   path: '/typePath',
        //   name: 'typePath',
        //   component: typePath,
        //   meta: {
        //     requireAuth: true
        //   }
      },
      {
        path: "/userCard",
        component: userCard,
        meta: {
          requireAuth: true,
          keepAlive: true
        }
      },
      {
        path: "/userCardEdit",
        name: "userCardEdit",
        component: userCardEdit,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/addshopapplydetailcopy",
        name: "addshopapplydetailcopy",
        component: addshopapplydetailcopy,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/licenseReview",
        name: "licenseReview",
        component: licenseReview,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/memberInfodetail",
        name: "memberInfodetail",
        component: memberInfodetail,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/membergrade",
        component: membergrade,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/integralFlow",
        component: integralFlowList,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/integralrule",
        component: integralrule,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/vipScoreList",
        component: vipScoreList,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/headProductmanage",
        component: headProductmanage,
        meta: {
          requireAuth: true,
          keepAlive: true
        }
      },
      {
        path: "/memberPrice",
        component: memberPrice,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/memberPriceEdit",
        name: "memberPriceEdit",
        component: memberPriceEdit,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/productEdit",
        name: "productEdit",
        component: productEdit,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/productDetail",
        name: "productDetail",
        component: productDetail,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/warProductmanage",
        name: "warProductmanage",
        component: warProductmanage,
        meta: {
          requireAuth: true,
          // keepAlive: true //当前的.vue文件需要缓存
        }
      },
      {
        path: "/warPricemanage",
        name: "warPricemanage",
        component: warPricemanage,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/headPricemanage",
        name: "headPricemanage",
        component: headPricemanage,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/headProductclass",
        name: "headProductclass",
        component: headProductclass,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/shopArchives",
        name: "shopArchives",
        component: shopArchives,
        meta: {
          requireAuth: true,
          keepAlive: true
        }
      },
      //    {
      //     path: '/addShopapply',
      //     name: 'addShopapply',
      //     component: addShopapply,
      //     meta: {
      //       requireAuth: true
      //     },
      //   },
      {
        path: "/shopMemberset",
        name: "shopMemberset",
        component: shopMemberset,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/shopMembersetcopy",
        name: "shopMembersetcopy",
        component: shopMembersetcopy,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/headexamine",
        name: "headexamine",
        component: headexamine,
        meta: {
          // requireAuth: true,
          // keepAlive: true
        }
      },
      {
        path: "/warexamine",
        name: "warexamine",
        component: warexamine,
        meta: {
          // requireAuth: true,
          // keepAlive: true
        }
      },
      {
        path: "/shopClose",
        name: "shopClose",
        component: shopClose,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/imgtuiguang",
        component: adsenseList,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/menuManagement",
        name: "menuManagement",
        component: menuManagement,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/anlaOrga",
        name: "anlaOrga",
        component: anlaOrga,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/newMember",
        name: "newMember",
        component: newMember,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/couponList",
        name: "couponList",
        component: couponList,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/couponEdit",
        name: "couponEdit",
        component: couponEdit,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/couponList_ty",
        name: "couponList_ty",
        component: couponList_ty,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/couponEdit_ty",
        name: "couponEdit_ty",
        component: couponEdit_ty,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/couponList_dx",
        name: "couponList_dx",
        component: couponList_dx,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/couponEdit_dx",
        name: "couponEdit_dx",
        component: couponEdit_dx,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/couponStatisticsList_dx",
        name: "couponStatisticsList_dx",
        component: couponStatisticsList_dx,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/couponList_gj",
        name: "couponList_gj",
        component: couponList_gj,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/goujiuCouponRecord",
        name: "goujiuCouponRecord",
        component: goujiuCouponRecord,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/goujiuCouponUseList",
        name: "goujiuCouponUseList",
        component: goujiuCouponUseList,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/couponEdit_gj",
        name: "couponEdit_gj",
        component: couponEdit_gj,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/couponUseRecord",
        name: "couponUseRecord",
        component: couponUseRecord,
        meta: {
          requireAuth: true,
          keepAlive: true
        }
      },
      {
        path: "/orderManage",
        name: "orderManage",
        component: orderManage,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/shareManage",
        name: "shareManage",
        component: shareManage,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/basicinfo",
        name: "basicinfo",
        component: basicinfo,
        meta: {
          requireAuth: true
        }
      },
      // {
      //   path: "/memberInfo",
      //   component: memberInfo,
      //   meta: {
      //     requireAuth: true
      //   }
      // },
      {
        path: "/dictionary",
        name: "dictionary",
        component: dictionary,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/systemparameter",
        name: "systemparameter",
        component: systemparameter,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/activationGoods",
        name: "activationGoods",
        component: activationGoods,
        meta: {
          requireAuth: true,
          keepAlive: true //当前的.vue文件需要缓存
        }
      },
      {
        path: "/promotionList",
        name: "promotionList",
        component: promotionList,
        meta: {
          requireAuth: true,
          keepAlive: true //当前的.vue文件需要缓存
        }
      },
      {
        path: "/promotionEdit",
        name: "promotionEdit",
        component: promotionEdit,
        meta: {
          requireAuth: true,
          keepAlive: true //当前的.vue文件需要缓存
        }
      },
      {
        path: "/sendCouponRecord",
        name: "sendCouponRecord",
        component: sendCouponRecord,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/sendCoupon",
        name: "sendCoupon",
        component: sendCoupon,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/orderManage",
        name: "orderManage",
        component: orderManage,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/shareManage",
        name: "shareManage",
        component: shareManage,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/basicinfo",
        name: "basicinfo",
        component: basicinfo,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/memberInfo",
        component: memberInfo,
        meta: {
          requireAuth: true,
          // keepAlive: true
        }
      },
      {
        path: "/shopgrade",
        name: "shopgrade",
        component: shopgrade,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/shopintegralrule",
        name: "shopintegralrule",
        component: shopintegralrule,
        meta: {
          requireAuth: true
        }
      },

      {
        path: "/infoCaterMerchants",
        name: "infoCaterMerchants",
        component: infoCaterMerchants,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/infoCaterMerchantscopy",
        name: "infoCaterMerchantscopy",
        component: infoCaterMerchantscopy,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/adSetting",
        name: "adSetting",
        component: adSetting,
        meta: {
          requireAuth: true,
          // keepAlive: false //当前的.vue文件需要缓存
        }
      },
      {
        path: "/adsetingDetail",
        name: "adsetingDetail",
        component: adsetingDetail,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/homepage",
        name: "homepage",
        component: homepage,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/attendanceRecord",
        name: "attendanceRecord",
        component: attendanceRecord,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/attendanceRecordDetail",
        name: "attendanceRecordDetail",
        component: attendanceRecordDetail,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/intelligentEarlyWarning",
        name: "intelligentEarlyWarning",
        component: IntelligentEarlyWarning,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/warZoneDeskDetail",
        name: "warZoneDeskDetail",
        component: WarZoneDeskDetail,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/warZoneFrockDetail",
        name: "warZoneFrockDetail",
        component: WarZoneFrockDetail,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/shopManagerDetail",
        name: "shopManagerDetail",
        component: ShopManagerDetail,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/storeTaskTracking",
        name: "storeTaskTracking",
        component: StoreTaskTracking,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/storeTaskTrackingDetail",
        name: "storeTaskTrackingDetail",
        component: StoreTaskTrackingDetail,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/storeInspectionTaskSetting",
        name: "storeInspectionTaskSetting",
        component: StoreInspectionTaskSetting,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/wineInformation",
        name: "wineInformation",
        component: WineInformation,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/wineInformationAdd",
        name: "wineInformationAdd",
        component: WineInformationAdd,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/empInfo",
        name: "empInfo",
        component: EmpInfo,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/empInfoUpload",
        name: "empInfoUpload",
        component: EmpInfoUpload,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/testItem",
        name: "testItem",
        component: TestItem,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/addEquipment",
        name: "addEquipment",
        component: AddEquipment,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/equipment",
        name: "equipment",
        component: Equipment,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/lotteryActivityset",
        name: "lotteryActivityset",
        component: lotteryActivityset,
        meta: {
          requireAuth: true,
          keepAlive: true //当前的.vue文件需要缓存
        }
      },
      {
        path: "/lotteryActivityxinset",
        name: "lotteryActivityxinset",
        component: lotteryActivityxinset,
        meta: {
          requireAuth: true,
          // keepAlive: false //当前的.vue文件需要缓存
        }
      },
      {
        path: "/giftbank",
        name: "giftbank",
        component: giftbank,
        meta: {
          requireAuth: true,
          keepAlive: true //当前的.vue文件需要缓存
        }
      },
      {
        path: "/lotteryActivitysetedit",
        name: "lotteryActivitysetedit",
        component: lotteryActivitysetedit,
        meta: {
          requireAuth: true
        }
      },

      {
        path: "/raffleRecord",
        name: "raffleRecord",
        component: raffleRecord,
        meta: {
          requireAuth: true
        }
      },

      {
        path: "/winPrizeRecord",
        name: "winPrizeRecord",
        component: winPrizeRecord,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/lotteryActivitysetxinedit",
        name: "lotteryActivitysetxinedit",
        component: lotteryActivitysetxinedit,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/IntegralActivityEdit",
        name: "IntegralActivityEdit",
        component: IntegralActivityEdit,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/giftbankedit",
        name: "giftbankedit",
        component: giftbankedit,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/pointsGiftBankEdit",
        name: "pointsGiftBankEdit",
        component: pointsGiftBankEdit,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/prizeLibrary",
        name: "prizeLibrary",
        component: prizeLibrary,
        meta: {
          requireAuth: true,
          keepAlive: true //当前的.vue文件需要缓存
        }
      },
      {
        path: "/commonproblem",
        name: "commonproblem",
        component: commonproblem,
        meta: {
          requireAuth: true,
          keepAlive: true //当前的.vue文件需要缓存
        }
      },
      {
        path: "/IntegralActivity",
        name: "IntegralActivity",
        component: IntegralActivity,
        meta: {
          requireAuth: true,
          keepAlive: true //当前的.vue文件需要缓存
        }
      },
      {
        path: "/pointsGiftBank",
        name: "pointsGiftBank",
        component: pointsGiftBank,
        meta: {
          requireAuth: true,
          keepAlive: true //当前的.vue文件需要缓存
        }
      }, {
        path: "/pointsRecord",
        name: "pointsRecord",
        component: pointsRecord,
        meta: {
          requireAuth: true,
          // keepAlive: true //当前的.vue文件需要缓存
        }
      },
      {
        path: "/prizeLibraryEdit",
        name: "prizeLibraryEdit",
        component: prizeLibraryEdit,
        meta: {
          requireAuth: true,

        }
      },
      {
        path: "/commonproblemEdit",
        name: "commonproblemEdit",
        component: commonproblemEdit,
        meta: {
          requireAuth: true,

        }
      },
      {
        path: "/shopMembersetedit",
        name: "shopMembersetedit",
        component: shopMembersetedit,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/winningCheck",
        name: "winningCheck",
        component: winningCheck,
        meta: {
          requireAuth: true,
          // keepAlive: true //当前的.vue文件需要缓存
        }
      },
      {
        path: "/headexaminesee",
        name: "headexaminesee",
        component: headexaminesee,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/serviceRecords",
        name: "serviceRecords",
        component: serviceRecords,
        meta: {
          requireAuth: true,
          keepAlive: true //当前的.vue文件需要缓存
        }
      },

      {
        path: "/businessActivity",
        name: "businessActivity",
        component: businessActivity,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/merchantActivity",
        name: "merchantActivity",
        component: merchantActivity,
        meta: {
          requireAuth: true,
          // keepAlive: true //当前的.vue文件需要缓存
        }
      },
      {
        path: "/canCodeDataStatistics",
        name: "canCodeDataStatistics",
        component: canCodeDataStatistics,
        meta: {
          requireAuth: true,
          // keepAlive: true //当前的.vue文件需要缓存
        }
      },{
        path: "/scanCodeOutboundDataStatistics",
        name: "scanCodeOutboundDataStatistics",
        component: scanCodeOutboundDataStatistics,
        meta: {
          requireAuth: true,
          // keepAlive: true //当前的.vue文件需要缓存
        }
      },
      {
        path: "/questionnaireStatistical",
        name: "questionnaireStatistical",
        component: questionnaireStatistical,
        meta: {
          requireAuth: true,
          // keepAlive: true //当前的.vue文件需要缓存
        }
      },
      {
        path: "/questionnaireData",
        name: "questionnaireData",
        component: questionnaireData,
        meta: {
          requireAuth: true,
          // keepAlive: true //当前的.vue文件需要缓存
        }
      },
      {
        path: "/goodMarketStatement",
        name: "goodMarketStatement",
        component: goodMarketStatement,
        meta: {
          requireAuth: true,
          // keepAlive: true //当前的.vue文件需要缓存
        }
      },
      {
        path: "/goodMarketSituationStatement",
        name: "goodMarketSituationStatement",
        component: goodMarketSituationStatement,
        meta: {
          requireAuth: true,
          // keepAlive: true //当前的.vue文件需要缓存
        }
      },
      {
        path: "/storeSellStatement",
        name: "storeSellStatement",
        component: storeSellStatement,
        meta: {
          requireAuth: true,
          // keepAlive: true //当前的.vue文件需要缓存
          }
      },
      {
        path: "/warZoneSellStatement",
        name: "warZoneSellStatement",
        component: warZoneSellStatement,
        meta: {
          requireAuth: true,
          // keepAlive: true //当前的.vue文件需要缓存
             }
      },
      {
        path: "/prizeActivityConfiguration",
        name: "prizeActivityConfiguration",
        component: prizeActivityConfiguration,
        meta: {
          requireAuth: true,
          // keepAlive: true //当前的.vue文件需要缓存
             }
      },
      {
        path: "/editActivityConfiguration",
        name: "editActivityConfiguration",
        component: editActivityConfiguration,
        meta: {
          requireAuth: true,
          // keepAlive: true //当前的.vue文件需要缓存
             }
      },
      {
        path: "/miniGamesHonoreeInfo",
        name: "miniGamesHonoreeInfo",
        component: miniGamesHonoreeInfo,
        meta: {
          requireAuth: true,
          // keepAlive: true //当前的.vue文件需要缓存
             }
      },
      {
        path: "/orderMessageList",
        name: "orderMessageList",
        component: orderMessageList,
        meta: {
          requireAuth: true,
          // keepAlive: true //当前的.vue文件需要缓存
             }
      },

      {
        path: "/newYearActive",
        name: "newYearActive",
        component: newYearActive,
        meta: {
          requireAuth: true,
          // keepAlive: true //当前的.vue文件需要缓存
             }
      },
      {
        path: "/editNewYearActive",
        name: "editNewYearActive",
        component: editNewYearActive,
        meta: {
          requireAuth: true,
          // keepAlive: true //当前的.vue文件需要缓存
             }
      },



      {
        path: "/questionnaireList",
        name: "questionnaireList",
        component: questionnaireList,
        meta: {
          requireAuth: true,
          // keepAlive: true //当前的.vue文件需要缓存
        }
      },
      {
        path: "/questionnaireEdit",
        name: "questionnaireEdit",
        component: questionnaireEdit,
        meta: {
          requireAuth: true,
          // keepAlive: true //当前的.vue文件需要缓存
        }
      },
      {
        path: "/warexaminesee",
        name: "warexaminesee",
        component: warexaminesee,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/baseCenter",
        name: "baseCenter",
        component: BaseCenter,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/tastingWine",
        name: "tastingWine",
        component: tastingWine,
        meta: {
          requireAuth: true,
          keepAlive: true
        }
      },
      {
        path: "/tastingWineManage",
        name: "tastingWineManage",
        component: tastingWineManage,
        meta: {
          requireAuth: true,
          keepAlive: true
        }
      },

      {
        path: "/tastingWineDetail",
        name: "tastingWineDetail",
        component: tastingWineDetail,
        meta: {
          requireAuth: true,
        }
      },
      {
        path: "/tastingWineManageDetail",
        name: "tastingWineManageDetail",
        component: tastingWineManageDetail,
        meta: {
          requireAuth: true,
        }
      },

      {
        path: "/hongbaoActivityManage",
        name: "hongbaoActivityManage",
        component: hongbaoActivityManage,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/cleanHongBaoTime",
        name: "cleanHongBaoTime",
        component: cleanHongBaoTime,
        meta: {
          requireAuth: true
        }
      },

      // {
      //   path: "/tastingWineManageDetail",
      //   name: "tastingWineManageDetail",
      //   component: tastingWineManageDetail,
      //   path: "/hongbaoActivityManage",
      //   name: "hongbaoActivityManage",
      //   component: hongbaoActivityManage,
      //   meta: {
      //     requireAuth: true
      //   }
      // },
      {
        path: "/transferRecords",
        name: "transferRecords",
        component: transferRecords,
        meta: {
          requireAuth: true,
          keepAlive: true //当前的.vue文件需要缓存
        }
      },
      {
        path: "/queryExchangeForm",
        name: "queryExchangeForm",
        component: queryExchangeForm,
        meta: {
          requireAuth: true,
          // keepAlive: true //当前的.vue文件需要缓存
        }
      },
      {
        path: "/queryExchangeFormDetail",
        name: "queryExchangeFormDetail",
        component: queryExchangeFormDetail,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/breakdownOfTheFlow",
        name: "breakdownOfTheFlow",
        component: breakdownOfTheFlow,
        meta: {
          requireAuth: true,
          keepAlive: true //当前的.vue文件需要缓存
        }
      },
      {
        path: "/transferRecordsDetail",
        name: "transferRecordsDetail",
        component: transferRecordsDetail,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/hongbaoActivityDetail",
        name: "hongbaoActivityDetail",
        component: hongbaoActivityDetail,
        meta: {
          requireAuth: true
        }
      },
      {
        name: "videoSurveillance",
        path: "/videoSurveillance",
        component: () => require("@/page/smartShop/videoSurveillance/index"),
        meta: {
          requireAuth: true
        }
      },
      {
        name: "videoPlugin",
        path: "/videoSurveillance/videoPlugin",
        component: VideoPlugin,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/warZoneMemberSalesReport",
        name: "warZoneMemberSalesReport",
        component: warZoneMemberSalesReport,
        meta: {
          requireAuth: true}
      },
      {
        path: "/overallSituationOfMembers",
        name: "overallSituationOfMembers",
        component: overallSituationOfMembers,
        meta: {
          requireAuth: true}
      },
      {
        path: "/warZoneSalesReport",
        name: "warZoneSalesReport",
        component: warZoneSalesReport,
        meta: {
          requireAuth: true}
      },
      {
        path: "/liveStore",
        name: "liveStore",
        component: liveStore,
        meta: {
          requireAuth: true,
          // keepAlive: true //当前的.vue文件需要缓存
        }
      },
      {
        path: "/headquartersLiveBroadcastApproval",
        name: "headquartersLiveBroadcastApproval",
        component: headquartersLiveBroadcastApproval,
        meta: {
          requireAuth: true,
          // keepAlive: true //当前的.vue文件需要缓存
        }
      },
      {
        path: "/infoApprovalDetail",
        name: "infoApprovalDetail",
        component: infoApprovalDetail,
        meta: {
          requireAuth: true,
          // keepAlive: true //当前的.vue文件需要缓存
        }
      },
      {
        path: "/yuanchunAct",
        name: "yuanchunAct",
        component: yuanchunAct,
        meta: {
          requireAuth: true,
          // keepAlive: true //当前的.vue文件需要缓存
        }
      },
      {
        path: "/shareTotal",
        name: "shareTotal",
        component: shareTotal,
        meta: {
          requireAuth: true
        }
      },
      // 优购券
      {
        path: "/yougouCoupon",
        name: "yougouCoupon",
        component: yougouCoupon,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/yougouCouponDetail",
        name: "yougouCouponDetail",
        component: yougouCouponDetail,
        meta: {
          requireAuth: true
        }
      },

      // 协议管理
      {
        path: "/agreementManage",
        name: "agreementManage",
        component: agreementManage,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/agreementDetail",
        name: "agreementDetail",
        component: agreementDetail,
        meta: {
          requireAuth: true
        }
      },

      // 店铺档案修改
      {
        path: "/updateShopInfo",
        name: "updateShopInfo",
        component: updateShopInfo,
        meta: {
          requireAuth: true
        }
      },

      // 高德地图店铺同步
      {
        path: "/amapShopSync",
        name: "amapShopSync",
        component: amapShopSync,
        meta: {
          requireAuth: true
        }
      },
      // 高德地图商品同步
      {
        path: "/amapGoodsSync",
        name: "amapGoodsSync",
        component: amapGoodsSync,
        meta: {
          requireAuth: true
        }
      },

      // 四期新增
      ...goodsRouters,
      // 四期升级新增
      ...upgradeRouter,
    ]
  },
  {
    path: "/dataBoard",
    name: "dataBoard",
    component: dataBoard,
    meta: {
      requireAuth: true
    }
  }
];

// export default new Router({
//   routes,
//   strict: process.env.NODE_ENV !== 'production',
// })
// Router.onError((error) => {
//   const pattern = /Loading chunk (\d)+ failed/g;
//   const isChunkLoadFailed = error.message.match(pattern);
//   const targetPath = Router.history.pending.fullPath;
//   if (isChunkLoadFailed) {
//     Router.replace(targetPath);
//   }
// });

const $router = new Router({
  // mode: 'history',
  // 解决vue框架页面跳转有白色不可追踪色块的bug
  scrollBehavior(to, from, savedPosition) {
    return {
      x: 0,
      y: 0
    }
  },
  routes
})
// 解决Loading chunk (\d)+ failed问题
$router.onError((error) => {
  console.error(error)
  const pattern = /Loading chunk/g
  // const pattern = /Loading chunk (\d)+ failed/g
  const isChunkLoadFailed = error.message.match(pattern)
  const targetPath = $router.history.pending.fullPath
  if (isChunkLoadFailed && error.type === 'missing') {
    // const targetPath = $router.history.pending.fullPath
    $router.push(targetPath)
  }
})
export default $router
